package com.csdj.controller;

import com.csdj.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class ProductController {
    @Autowired
    private ProductService productService;

    @RequestMapping(value = "/getProductPrice")
    public ModelAndView getProductPrice(){
        ModelAndView mv = new ModelAndView();
        productService.update();
        mv.setViewName("product");
        return mv;
    }
}
